﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System;
using System.Runtime.Serialization;

namespace FinPlusInterfaces
{
    [DataContract]
    public class BeanBase 
    {
        [DataMember]
        public virtual int Index { get; set; }
        [DataMember]
        public virtual int Id { get; set; }
        [DataMember]
        public virtual string Name { get; set; }
        [DataMember]
        public virtual string Value { get; set; }
        public virtual object Object { get; set; }
        [DataMember]
        public virtual string TypeName { get; set; }
        public virtual Type Type { get; set; }
        [DataMember]
        public virtual DateTime TimeStamp { get; set; }
        [DataMember]
        public virtual DateTime Closed { get; set; }
        [DataMember]
        public virtual string User { get; set; }

        public BeanBase() { }

        public BeanBase(int id, string name, object obj, DateTime timeStamp, string user)
        {
            Id = id;
            Name = name;
            Object = obj;
            TimeStamp = timeStamp;
            User = user;
        }
    }
}
